package sng.modules.view.components.city.state
{
	import sng.modules.view.components.city.logic.unit.BaseBuilding;
	
	/**
	 * 
	 * @author leonliu
	 * 建筑物正常状态 即无任何可操作
	 * 
	 */	
	public class BuildNormalState extends BuildState
	{
		public function BuildNormalState()
		{
		}
		
		public override function setSkin(build:BaseBuilding):void
		{
			try
			{
				build.skin.getMC().gotoAndStop(build.currentDirection);				
			} 
			catch(error:Error) 
			{
				
			}
		}
		
		
		public override function getiStateType():uint
		{
			return 1;
		}
		
		//某些建筑在正常状态下有点击事件
		public override function execute(build:BaseBuilding):void
		{
	
			build.currentStrategy.clickNormalBuildingStrategy();

		}
	}
}